package com.blackshadowgame.rps;

import com.blackshadowgame.rps.client.GameClient;
import com.blackshadowgame.rps.slice.HomeSlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
    private static final String TAG = MainAbility.class.getSimpleName();

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(HomeSlice.class.getName());

        GameClient.getInstance().init();

        requestPermissionsFromUser(
                new String[]{
                        "ohos.permission.DISTRIBUTED_DATASYNC",
                        "ohos.permission.GET_DISTRIBUTED_DEVICE_INFO",
                        "ohos.permission.servicebus.ACCESS_SERVICE"
                }, 0);

    }
}
